﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class DeptInfoBLL
    {
        DeptInfoDAL dal = new DeptInfoDAL();
        public List<DeptInfo> getDept(string deptName, int begin, int end, out int total)
        {
            return dal.getDept(deptName,begin,end,out total);
        }

        public string Add(DeptInfo dept)
        {
            return dal.Add(dept);
        }

        public string Update(DeptInfo dept)
        {
            return dal.Update(dept);
        }

        public string Delete(int cid)
        {
            return dal.Delete(cid);
        }

        public List<DeptInfo> Select(string dapt)
        {
            return dal.Select(dapt);
        }
    }
}
